<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_dir = $this->baseurl.'/templates/'.$this->template.'/';
$db = JFactory::getDBO();
$query = "SELECT p.katno, p.model, p.image FROM #__pr_product p INNER JOIN #__auction a ON p.id = a.product_id WHERE a.id = ".JRequest::getVar('auc_id');
$db->setQuery($query);
$info = $db->loadObject();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/thickbox.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/2202.css" />
<jdoc:include type="head" />
<?php
	 unset($this->_scripts[$this->baseurl.'/media/system/js/mootools.js']);
	 unset($this->_scripts[$this->baseurl.'/media/system/js/caption.js']);
?>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="templates/tpl_automobil/js/list_images.js"></script>
<script src="templates/tpl_automobil/js/jquery.validate.js" type="text/javascript"></script>
<script src="<?php echo $template_dir;?>js/thickbox.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="productTitle" property="og:title" content="<?php echo $info->katno .'-'. $info->model;?>">
<meta name="productImage" property="og:image" content="<?php echo JURI::root(false)."thumbnail/timthumb.php?src=".JURI::root(false)."components/com_ecommerce/imgupload/".$info->image."&w=447&h=296&zc=1";?>">
</head>
	<body>
        <div id="page">
            <div id="header">
                <div class="w246 float_left"><a href="index.php"><img src="<?php echo $template_dir;?>images/logo.jpg" /></a></div>
                <div class="w593 float_left"><img src="<?php echo $template_dir;?>images/banner.jpg"/></div>
                <div class="w123 float_right">
                  <p style="padding:58px 0 5px 0; font-size:12px; text-transform:uppercase;"><strong>Følg os på</strong></p>
                  <p><a href="http://www.facebook.com/group.php?v=info&amp;gid=238433407302" target="_blank"><img src="<?php echo $template_dir;?>images/bt_facbook.jpg"/></a></p>
                </div>
                <p class="cb"></p>
            </div>
            <div id="main">
                <div class="w246 float_left">
                    <div class="nav_left">
                    <jdoc:include type="modules" name="menu" />
                       
                    </div>
                </div>
                <div class="w739 float_right">
              		<div style="display: none;"> 
             			<jdoc:include type="message" />
             		</div>  
                    <jdoc:include type="modules" name="banner" />
                    <jdoc:include type="component" />
                </div>
                <div class="cb"></div>
                <div style="overflow:hidden; width:986px; position:relative;">
                <?php if(JRequest::getVar('Itemid') == 1){?>
                <div class="p15t">
                  <a class="box_service1" href="katalog.html">
                    <p class="text_center p10b"><img src="<?php echo $template_dir;?>images/car1.png"/></p>
                    <p class="tex_up font16 text_center"><strong>Auktions<span class="red_color">Katalog</span></strong><span class="red_color"></span></p>
                    <p class="p5t">Klik her for at se kataloget for
                      den næstkommende auktion. Her finder du billeder og info på samtlige biler. Opdateres løbende.</p>
                  </a>
                  <a class="box_service2" href="index.php?option=com_content&view=article&id=7&Itemid=5">
                    <p class="text_center p10b"><img src="<?php echo $template_dir;?>images/car2.png"/></p>
                    <p class="tex_up font16 text_center"><strong><span class="red_color">Sælg</span> din bil</strong></p>
                    <p class="p5t">Her finder du al den information du skal bruge i forbindelse med salg af din bil på auktionen. Læs mere om tilmelding, nødvendige dokumen-ter osv.</p>
                  </a>
                  <a class="box_service2" href="index.php?option=com_content&view=article&id=8&Itemid=6">
                    <p class="text_center p10b"><img src="<?php echo $template_dir;?>images/car3.png"/></p>
                    <p class="tex_up font16 text_center"><strong><span class="red_color">Køb</span> af bil</strong></p>
                    <p class="p5t">Her finder du informationer om hvad du skal gøre hvis du gerne vil byde på en eller flere biler på auktionen. Læs mere om tilmelding, bydenumre, salær osv.</p>
                  </a>
                  <a class="box_service3" href="login-online-auktion.html">
                    <p class="text_center p10b"><img src="<?php echo $template_dir;?>images/car4.png"/></p>
                    <p class="tex_up font16 text_center"><strong><span class="red_color">Online</span> Auktion</strong></p>
                    <p class="p5t">Som noget nyt, tilbyder vi dig mulighed for at byde online på bilerne. Læs mere om hvordan det foregår.</p>
                  </a>
                  <div class="cb"></div> 
                </div>
              <?php }?>
              <jdoc:include type="modules" name="slideshow" />
               </div>
               <div class="cb"></div>
            </div>
            <div id="footer">
            {module Footer}
            <p class="float_right p20t">Design af <a href="http://www.mywebcreations.dk" target="_blank">Mywebcreations</a></p>
            <p class="cb"></p>
            </div> 
		</div> 
<style>
img{border: none;}
.bg_alert{ width:270px; height:115px; background:url(<?php echo JURI::base();?>templates/tpl_automobil/images/bg_alert.png) no-repeat top left; margin:0px auto; padding:15px 0px 0px 83px; color:#000;}
.m35l{ margin-left:35px;}
</style>
<script type="text/javascript">
	jQuery(document).ready(function(cash) {
		jQuery(".item14").css("display", "none");
		jQuery(".item10").css("display", "none");
		if(jQuery("#system-message  ul li").html() != null) {
			$('#alert').html(jQuery("#system-message  ul li").html());
			$('#backoverlay').show();
			$('#show_popup').show();	  
		};
		close_popup=function(){		
			var fel=$('#f_focus').html();
			$('#backoverlay').hide();
			$('#show_popup').hide();
			$('#' + fel ).focus();
		};
		close_popup_at=function(){		
			var fel=$('#f_focus').html();
			$('#backoverlay_at').hide();
			$('#show_popup_at').hide();
			$('#' + fel ).focus();
		};
	});
</script>
<div class="bg_alert" id="show_popup" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;">
<span id="f_focus" style="display:none;"></span>
<!--<div style="padding: 3px 20px 10px 15px; min-height: 60px; font-size: 11px; margin: 0; " id="alert"></div>  --> <div style="margin:0; padding-top:12px; padding-right: 15px; min-height:60px; font-size: 12px;" id="alert"></div>
<div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img id="closeImg" src="templates/tpl_automobil/images/bt_luk1.png" alt="" /></a></div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>
	</body>
</html>